package com.jiepos.mpos.pay.quickpay.service.huiepay;

import java.util.HashMap;
import java.util.Map;

import com.hy.utils.JsonUtil;
import com.jiepos.mpos.core.util.GlobalUtils;

public class Req5091Business {
	JsonUtil jsonUtil = new JsonUtil();
	public static String assembleMsgBody(Map<String, String> dataMap){
		Map<String,String> kv =new HashMap();
		kv.put("tran_cd", "5091");  //交易类型
		kv.put("prod_cd", GlobalUtils.getPayConfProperty("huiepay.pay.prod_cd")); //产品编码T1:1140  T0:1171
		kv.put("biz_cd", GlobalUtils.getPayConfProperty("huiepay.pay.biz_cd"));  //0000026业务编码
		kv.put("chn_ins_id_cd", GlobalUtils.getPayConfProperty("huiepay.pay.chn_ins_id_cd"));  //密钥机构号
		kv.put("ins_id_cd", GlobalUtils.getPayConfProperty("huiepay.pay.ins_id_cd"));  //机构代码
		kv.put("mcht_cd", GlobalUtils.getPayConfProperty("huiepay.pay.mcht_cd"));  //商户号
		kv.put("tran_dt_tm", dataMap.get("loc_dt") + dataMap.get("loc_ts"));
		kv.put("order_id", dataMap.get("loc_trace_no")); //20170717000006,20170717000015
//		kv.put("orig_sys_order_id", "201707170304046");
		kv.put("req_reserved", "");
		
		String result = JsonUtil.toJsonByObj(kv);
		return result;
	}
}
